#! /bin/bash

FROMDIR="/tmp/__abelsim"
TODIR="Mabel.app/Contents/Resources"
BADDIR="/tmp/__abelsimBAD"
if [ -d $FROMDIR ]; then
# Restore the mcf files, overwriting the upgrade ones; tidy up
	mv $FROMDIR/* $DSTROOT/$TODIR/Methods
	rmdir $FROMDIR
else 
	if [ -d $BADDIR ]; then
# Pre-script found there was no valid Mabel to upgrade.
# Remove _go.wav file, to cause Mabel to complain politely; tidy up
		rm $DSTROOT/$TODIR/Prompts/_go.wav
		rmdir $BADDIR
	fi
fi